<template>
  <p>count:{{ count }}</p>
  <p>doubleCount:{{ doubleCount }}</p>
  <button @click="increment">+</button>
</template>
<script setup>
import {storeToRefs} from 'pinia';
import { useCounterStore } from "../stores/counterStore";
const counterStore = useCounterStore();
const {increment}=counterStore;
const {count,doubleCount} = storeToRefs(counterStore);
console.log(count,doubleCount,increment)
</script>
